package cn.cq.admin.util;

import cn.cq.admin.entity.model.Course;

import cn.cq.admin.entity.vo.*;

public class VoCast {
    public static CourseVo convertToCourseVo(Course course) {
        CourseVo courseVo = new CourseVo();
        courseVo.setCourseName(course.getCourseName());
        courseVo.setStatus(course.getStatus());
        courseVo.setSort(course.getSort());
        courseVo.setId(String.valueOf(course.getId()));
        return courseVo;
    }
}
